package com.example.myapplication.tools;

import com.example.myapplication.R;
import com.example.myapplication.entity.UserInfo;

import java.util.ArrayList;
import java.util.List;

public class DataTool {

    public static List<UserInfo> getUserInfo(int count) {
        List<UserInfo> userInfos = new ArrayList<>();
        for (int i = 0; i < count; i++) {
            UserInfo userInfo = new UserInfo();
            userInfo.setTitle("标题" + (i + 1));
            userInfo.setSubTitle("描述" + (i + 1));
            userInfo.setIcon(R.drawable.ic_baseline_airplanemode_active_24);
            userInfos.add(userInfo);
        }
        return userInfos;
    }

}
